/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.exception;

/**
 * 系统业务异常
 * 
 * @author limk
 * @date 2018年2月13日 上午11:57:17
 * @version 1.0
 */
public class BusinessException extends RuntimeException {

    /**
	 *
	 */
	private static final long serialVersionUID = -710951100561999769L;
	
	private String code;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
